/*
 * @Author: wdfky 15139746+hegemondin@user.noreply.gitee.com
 * @Date: 2025-03-11 19:39:32
 * @LastEditors: wdfky 15139746+hegemondin@user.noreply.gitee.com
 * @LastEditTime: 2025-03-12 09:06:39
 * @FilePath: \frist_vue\src\store\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    selectedUser: null, // 存储当前选中的用户对象
  },
  getters: {},
  mutations: {
    SET_SELECTED_USER(state, user) {
      state.selectedUser = user;
    },
  },
  actions: {},
  modules: {},
});
